package test.ao4demo4;

public class StudentLeader extends Student{
    private String job;
    public StudentLeader() {
    }
    public StudentLeader(String name, String sex, int age, String nationality, String school, String stuNumber, String job) {
        super(name, sex, age, nationality, school, stuNumber);
        this.job = job;
    }
    public String getJob() {
        return job;
    }
    public void setJob(String job) {
        this.job = job;
    }
    @Override
    public void work(){
        System.out.println("学生干部喜欢开会");
    }
}
